$(function() {
  //渲染标题
  var couponTitle = getSearch("coupontitle");
  var title = couponTitle + "优惠券"
  $(".title").html(title);
  // 渲染列表
  var couponId = getSearch("couponid");
  $.ajax({
    type: "get",
    url: "http://" + ip + ":9090/api/getcouponproduct",
    data: {
      couponid: couponId
    },
    dataType: "json",
    success: function(info) {
      console.log(info);
      $(".coupons ul").html(template("couponProductTpl", info));
    }
  });
  // 轮播图
  
});